//展示消息框
function showNotice(){
    layui.use('layer',function () {
        layer.tab({
            skin: 'layui-layer-moon', //样式类名
            area: ['600px', '350px'],
            tab: [{
                title: '论坛公告通知',
                content: '<div id="notice"></div>'
            }]
        });
    });
    getNoticeNew();
}

function getNoticeNew() {
    let obj = get_notice_new();
    let str =  '<fieldset style="margin-top: 5%" class="layui-elem-field">\n' +
        '  <legend>'+obj.data.title+'<span style="font-size: 8px">管理员：'+obj.data.nickname+'于'+obj.data.createtime.substring(0,11)+'发布</span></legend>\n' +
        '  <div class="layui-field-box" style="height: 400px">'+obj.data.content+'</div>\n' +
        '</fieldset>';
    $('#notice').html(str);
}